<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .body{
            width: 700px;
            height: 500px;
            background: url('/跟着狂神/img/04.JPG') no-repeat ;
            /* 靠上居中 */
            background-position: center top;
            /* 正中 */
            /* background-position: center center; */
            background-size: contain;
        }
       #body{
        width: 600px;
        height: 400px;
        background: url("/跟着狂神/img/04.JPG") no-repeat;
        /* background-position: center top; */
        /* 使图片和盒子一样大 */
        background-size: cover;
        }
        .id{
            width: 200px;
            height: 200px;
            background-color: aqua;
            opacity: 0.3;
            /* border: 1px solid black; */
            box-shadow: 15px 16px 30px 1px black;
        }
        .tup{
            width: 600px;
        height: 400px;
        background: url("/跟着狂神/img/04.JPG") no-repeat;
        background-size: cover;
        }
    </style>
</head>
<body>
    <div class="body"></div>
    <div id="body">

        <div>
            <div class="tup"></div>
        </div>
    </div>
    <div class="id"></div>
</body>
</html>